class Rect {
	double width;
	double height;
	double getArea () {
	double area= width*height;
	return area;
	}
}
class Lader {
	double above;
	double bottom;
	double height;
	double getArea() {
	return (above+bottom)*height/2;
	}
}
public class p67 {
	public static void main (String args[]) {
	Rect ractangle= new Rect();
	ractangle.width=109.87;
	ractangle.height=25.18;
	double area = ractangle.getArea();
	System.out.println ("矩形的面积:"+area);
	Lader lader=new Lader();
	lader.above=10.789;
	lader.bottom=156.65;
	lader.height=18.12;
	area = lader.getArea();
	System.out.println("梯形的面积:"+area);
	}
}
